﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using WpfApp.dbQPDataSetTableAdapters;
using WpfApp.UserControls;

namespace WpfApp.DataProvider
{
    /// <summary>
    /// Справочник Сотрудники
    /// </summary>
    public class EmployeesDataProvider
    {
        private EmployeesTableAdapter EmployeesAdapter;

        public EmployeesDataProvider()
        {
            dbQPDataSet dataset = dbQPDataProvider.dbQPDataSet;

            EmployeesAdapter = new EmployeesTableAdapter();
            EmployeesAdapter.Fill(dataset.Employees);
        }

        public DataView GetEmployees()
        {
            return dbQPDataProvider.dbQPDataSet.Employees.DefaultView;
        }
    }
}
